{template header}

<style>
    .hp-visited a:visited{color: #444;}
    .input-append button{font-size:12px;}
</style>
<div style="clear:both">
    <h5>
        <span class="add-on"><i class="icon-calendar"></i> 装备合辑管理 </span>
        <span class="add-on">
            <code><a href="./?c=admin&a=gearSets&ac=update">添加合辑</a></code>
        </span>
    </h5>
</div>
<style type="text/css">
        table td:nth-child(3) { max-width: 300px;}
</style>
<table class="table table-striped table-bordered table-hover">
    <thead>
        <tr>
            <th><center>#</center></th>
            <th><center>标题</center></th>
            <th><center>简介</center></th>
            <th><center>配图</center></th>
            <th><center>装备IDs</center></th>
            <th><center>添加时间</center></th>
            <th><center>操作</center></th>
        </tr>
    </thead>

    <tbody>
        {if $gearSets['count']}
        {loop $gearSets['data'] $gearSet}
        <tr>
            <td><center><code style="color:#333">{$gearSet['gearId']}</code></center></td>
            <td><center><code style="color:#333">{$gearSet['name']}</code></center></td>
            <td>{$gearSet['shortDesc']}</td>
            <td><center><img width="140" src="{$gearSet['img']}" /></center></td>
            <td><center><code style="color:#333">{$gearSet['relate_content']}</code></center></td>
            <td><center><code style="color:#333">{$gearSet['addTime']}</code></center></td>
            <td><center>
                <code style="color:#333; display: block;"><a href="./?c=admin&a=gearSets&ac=update&gid={$gearSet['gearId']}">编辑</a></code>
                {if $gearSet['possess']}
                <code style="color:#333; display:block;margin:5px 0;"><a href="./?c=admin&a=gearSets&ac=possess&gid={$gearSet['gearId']}&top=0" onclick="return confirm('确定要取消置顶吗?')">取消置顶</a></code>
                {else}
                <code style="color:#333;display: block;margin:5px 0;"><a href="./?c=admin&a=gearSets&ac=possess&gid={$gearSet['gearId']}&top=1" onclick="return confirm('确定要置顶吗?')">置顶</a></code>
                {/if}
                <code style="color:#333; display: block;"><a href="./?c=admin&a=gearSets&ac=del&gid={$gearSet['gearId']}" onclick="return confirm('确定要删除这条合辑?')">删除</a></code>
            </center></td>
        </tr>
        {/loop}
        {else}
        <tr><td colspan="7" style="text-align:center">数据为空</td></tr>
        {/if}
    </tbody>
</table>


{template footer}